package com.cn.controller;

import com.cn.common.Result;
import com.cn.service.TestDeptService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


/**
 * 部门表(TestDept)表控制层
 *
 * @author makejava
 * @since 2023-02-05 12:33:07
 */
@RestController
@RequestMapping("testDept")
@CrossOrigin
public class TestDeptController {
    /**
     * 服务对象
     */
    @Resource
    private TestDeptService testDeptService;

    @GetMapping("/selectByIdDept/{id}")
    public Result selectByIdDept(@PathVariable("id") String id){
        Result result = testDeptService.selectByIdDept(id);
        return result;
    }

    

}

